import { defineStore } from "pinia";

export const userInfo = defineStore("userInfo", {
  state: () => ({
    userInfo: {
      name: "lisi",
      age: 18
    }
  }),
  actions: {
    async setUserInfo(data) {
      this.userInfo = data;
    }
  }
});
